home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 08_2.dir / 00094_Text_text15.txt < prev    next >
Text File  |  2000-09-30  |  796b  |  9 lines

  1. When the real thumbnail is clicked in the clips window, the ActionScript tells this movie clip, (which we will call icon) to show the relevant thumbnail, and then snap to the center of the mouse and the begin a Drag action. The script you need to add to your button next looks like this:
  2.  
  3.   tellTarget (ΓÇ£../../iconΓÇ¥) {
  4.     gotoAndStop (ΓÇ£clip1ΓÇ¥);
  5.   }
  6.   startDrag (ΓÇ£../../iconΓÇ¥, true);
  7. }
  8. This script is pretty straightforward. The tell target action targets our dummy clip. The next line tells this clip to go to the correct clip. We use the variable that we set before, which currently contains clip1. After the end of the tell target, we then start dragging this dummy clip, but most importantly we lock it to the center of the mouse, using the Lock mouse to center checkbox.
  9.